<template>
  <div class="no-data">
    <img src="@/assets/empty.png" />
    <span>{{ tip }}</span>
  </div>
</template>
<script>
export default {
  props: {
    tip: {
      type: String,
      required: false,
      default: "暂无数据"
    }
  }
};
</script>
<style scoped lang="less">
.no-data {
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  padding: 20px 0;

  img {
    flex: 1;
    height: 0;
    max-height: 13.4rem;
  }
  span {
    font-size: 1.6rem;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.35);
  }
}
</style>
